package io.github.wanggit.antrpc.console.web.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

@Data
public class GraphVO implements Serializable {
    private static final long serialVersionUID = 4085175051425699969L;

    private List<Node> nodes = new ArrayList<>();

    private List<Edge> edges = new ArrayList<>();

    @Data
    public static class Node {
        private String color;

        private String label;

        private Double x;

        private Double y;

        private String id;

        private Double size;
    }

    @Data
    public static class Edge {
        private String sourceID;

        private String targetID;
    }
}
